package com.qiuzhiyi.net;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * Author: Li
 * Date: 2017/12/11 0011
 * Description:
 */


public class ObservableHelper {

    public static <T> Observable<T> createObservable(Observable<T> observable) {
        return observable
                .observeOn(AndroidSchedulers.mainThread())
                .subscribeOn(Schedulers.io());
    }
}
